package com.aspose.cells;

public class GradientStop {
   private GradientStopCollection b;
   private int c = 0;
   zakp a;

   GradientStop(GradientStopCollection stops) {
      this.b = stops;
      this.a = new zakp(true);
   }

   public double getPosition() {
      return (double)this.c / 1000.0D;
   }

   public void setPosition(double value) {
      this.c = (int)(value * 1000.0D + 0.5D);
   }

   public CellsColor getCellsColor() {
      Workbook var1 = this.b.a().e;
      CellsColor var2 = new CellsColor(var1);
      var2.a = this.a;
      return var2;
   }

   int a() {
      return zakp.e(this.a);
   }

   void a(int var1) {
      this.a = zakp.a(this.a, var1);
   }

   public double getTransparency() {
      return zakp.d(this.a);
   }

   public void setTransparency(double value) {
      this.a = zakp.a(this.a, value);
   }

   void a(GradientStop var1) {
      this.a.f(var1.a);
      this.c = var1.c;
   }

   boolean b(GradientStop var1) {
      if (!this.a.g(var1.a)) {
         return false;
      } else {
         return this.c == var1.c;
      }
   }
}
